# -*- encoding: utf-8 -*-
'''
@文件        :base.py
@Description:       : 数据库层基类
@Date     :2025/11/11 11:45:42
@Author      :lin
@version      :1.0
'''
from tortoise.models import Model
from tortoise import fields


class BaseModel(Model):
    """
    BaseModel
    """
    id = fields.IntField(pk=True, description="主键ID")
    created_at = fields.DatetimeField(auto_now_add=True, description="创建时间")
    updated_at = fields.DatetimeField(auto_now=True, description="更新时间")

    class Meta:
        abstract = True
